﻿<?php
/**
 *
 *@author kinet
 *@time 2010-9-12 to 2010-9-12
 *@version 1.2
 *@todo 
 */

class db_obj_admin extends db_obj{

	public function __construct( $db ){
		
		parent::__construct( $db , 'sojadmin' , 'admin' );
		
		$this->add('admin' , '' );
		$this->add('passwd' , '' );
		$this->add('email' , '');
		$this->add('last_login_time','' );
		$this->add('last_login_ipadd' , '' );
 
	}

	function admin_exists( $admin ){

		return $this->load( 'admin' , $admin );
	}	
}
